<template>
    <div id="cesiumContainer"></div>
</template>
<script lang="ts" setup>
import * as Cesium from 'cesium';
import { ACCESS_TOKEN } from '../../utils/constant';
/**
 * 添加默认添加地形服务
 */
Cesium.Ion.defaultAccessToken =ACCESS_TOKEN;
const initMap = async () => {
    const terrainProvider = await Cesium.createWorldTerrainAsync()
    new Cesium.Viewer('cesiumContainer', {
        animation: false,

        timeline: false,
        terrainProvider
    });
};
onMounted(() => {
    initMap();
});
</script>
<style lang="scss" scoped></style>
